Optimal. Leaf size=21 \[ \frac{\cos (a+b x)}{b}+\frac{\sec (a+b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0209529, antiderivative size = 21, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133, Rules used = {2590, 14} \[ \frac{\cos (a+b x)}{b}+\frac{\sec (a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2590
Rule 14
Rubi steps
\begin{align*} \int \sin (a+b x) \tan ^2(a+b x) \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{1-x^2}{x^2} \, dx,x,\cos (a+b x)\right )}{b}\\ &=-\frac{\operatorname{Subst}\left (\int \left (-1+\frac{1}{x^2}\right ) \, dx,x,\cos (a+b x)\right )}{b}\\ &=\frac{\cos (a+b x)}{b}+\frac{\sec (a+b x)}{b}\\ \end{align*}
Mathematica [A] time = 0.0221629, size = 21, normalized size = 1. \[ \frac{\cos (a+b x)}{b}+\frac{\sec (a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.014, size = 40, normalized size = 1.9 \begin{align*}{\frac{1}{b} \left ({\frac{ \left ( \sin \left ( bx+a \right ) \right ) ^{4}}{\cos \left ( bx+a \right ) }}+ \left ( 2+ \left ( \sin \left ( bx+a \right ) \right ) ^{2} \right ) \cos \left ( bx+a \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.988198, size = 26, normalized size = 1.24 \begin{align*} \frac{\frac{1}{\cos \left (b x + a\right )} + \cos \left (b x + a\right )}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.57206, size = 53, normalized size = 2.52 \begin{align*} \frac{\cos \left (b x + a\right )^{2} + 1}{b \cos \left (b x + a\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1924, size = 31, normalized size = 1.48 \begin{align*} \frac{\cos \left (b x + a\right )}{b} + \frac{1}{b \cos \left (b x + a\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]